<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>修改视频信息</title>
 </head>
 <body>
 <?php
   require_once('inc_admin.php');
   //连接数据库   
   connect();
   //用户id是通过GET方法提交的   
   //根据用户id从数据库中查询用户的所有信息
   $id = $_GET['id'];  
   $sql = "select * from videos where vid={$id}";   
   $result = mysql_query($sql) or die('查询失败！'.mysql_error());   
   $row = mysql_fetch_assoc($result);
   //var_dump($row);   
   $videoname = $row['videoname'];
   $tid = $row['tid'];
   $intro = $row['intro'];

 ?>

<form method="post"  action="videoUpdate.php" >
<table align="center" border="1" width=500>
<caption>修改视频信息</caption>
<tr>
  <td width="20%">id</td>
  <td width="80%"><?php  echo $id;  ?>
  <input type="hidden" name="id" value=<?php  echo $id;  ?>>  
  </td>
</tr>
<tr>
  <td>视频名称：</td>
  <td><input type="text" name="videoname" size=30  value=<?php  echo $row['videoname'];  ?>></td>
</tr>

<tr>
  <td>所属类别：</td>
  <td><input type="text" name="tid" size=30  value=<?php  echo $row['tid'];  ?>></td>
</tr>


<tr>
  <td>视频介绍：</td>
  <td><input type="text" name="intro" size=30  value=<?php  echo $row['intro'];  ?>></td>
</tr>

<tr>
<td width=150></td>
<td>
<input type="submit" value="更新">
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>
 </body>
</html>